<template>
  <div class="home">
    <h3>vue2app home</h3>
    基座应用的localStorage中的baseapp：{{ baseapp }}
    <br>
    在子应用改变基座应用的localStorage中的值baseapp <button @click="changeBaseApp">更改</button>

    <br>
    <br>
    <br>
  </div>
</template>

<script>
export default {
  data(){
    return {
      baseapp: localStorage.getItem('baseapp')
    }
  },
  methods: {
    changeBaseApp(){
      // this.baseapp = '更改后'
      localStorage.setItem('baseapp', '更改后')
    }
  }
}
</script>